<div class="modal-header">
    <span class="modal-title h3">应用新增</span>
    <a href class="iconfont icon-close pull-right" ng-click="cancel()"></a>
</div>
<div class="modal-body" style="max-height:500px;overflow-y: scroll;">
    <form novalidate class="form-horizontal" name="Form">
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">应用排序：</label>
            <div class="col-sm-10 col-md-9">
                <input type="number" class="form-control" placeholder="排序" ng-model="form.appNo" required >
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">应用名称：</label>
            <div class="col-sm-10 col-md-9">
                <input type="text" class="form-control" placeholder="应用名称" ng-model="form.appName" required >
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">应用类型：</label>
            <div class="col-sm-10 col-md-9">
                <select class="form-control"  ng-options="x.id as x.appTypeName for x in AppTypeList" ng-model="form.appTypeId" required>
                    <option value="" selected disabled hidden>应用类型</option>
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">厂商：</label>
            <div class="col-sm-10 col-md-9">
                <span class="form-control">{{Company.companyName}}</span>
                <!--<select class="form-control"  ng-options="x.id as x.companyName for x in CompanyList" ng-model="form.companyId" required>-->
                <!--<option value="" selected disabled hidden>厂商</option>-->
                <!--</select>-->
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">价格：</label>
            <div class="col-sm-10 col-md-9">
                <input type="number" class="form-control" placeholder="价格（元）" ng-model="form.price" required >
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">版本号：</label>
            <div class="col-sm-10 col-md-9">
                <input type="text" class="form-control" placeholder="版本号" ng-model="form.versionNo" required >
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">应用对象：</label>
            <div class="col-sm-10 col-md-9 ">
                <label class="checkbox-inline" ng-repeat="item in UserType">
                    <input type="checkbox" id="inlineCheckbox1" ng-click="setCheck(item.id)" value="item.id" ng-checked="isSelected(item.userTypeName)"> {{item.userTypeName}}
                </label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">是否上架：</label>
            <div class="col-sm-10 col-md-9">
                <label class="radio-inline">
                    <input type="radio" name="isOpen" ng-value="1" ng-model="form.isOpen">是
                </label>
                <label class="radio-inline">
                    <input type="radio" name="isOpen" ng-value="0" ng-model="form.isOpen">否
                </label>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">PC端域名：</label>
            <div class="col-sm-10 col-md-9">
                <input type="url" class="form-control" placeholder="请输入PC端域名(http://www.xxx.com)" ng-model="form.url">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">移动端域名：</label>
            <div class="col-sm-10 col-md-9">
                <input type="url" class="form-control" placeholder="请输入移动端域名(http://www.xxx.com)" ng-model="form.mobileUrl">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 col-md-3  control-label">备注：</label>
            <div class="col-sm-10 col-md-9">
                <textarea class="form-control" placeholder="备注" ng-model="form.remark" cols="30" rows="3"></textarea>
            </div>
        </div>
    </form>
</div>
<div class="modal-footer" style="text-align:center">
    <button class="btn btn-primary" style="margin-top:10px" ng-click="ok()" ng-disabled="Form.$invalid">　　完成　　</button>
    <button class="btn btn-default" style="margin-top:10px" ng-click="cancel()">　　取消　　</button>
</div>
